package com.banciyuan.wallpaper.util;

import com.google.gson.JsonElement;
import com.google.gson.JsonObject;

/**
 * Created by squall on 2016/8/2.
 */
public class JsonStatus {

    public static boolean getJsonStatus(JsonObject jsonObject) {
        JsonElement jsonElement = jsonObject.get("status");
        if (jsonElement.getAsInt() == 1) {
            return true;
        } else {
            return false;
        }
    }
}
